*** Settings ***
Documentation       通过ipmi接口获取BMC的ssh端口
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Ssh_port

*** Variables ***
${input}                    raw 0x30 0x93 0xdb 0x07 0x00 0x10 0x02 0x02 0x00 0x00 0xff
${expected_rc}              ${0}
${expected_output}          db 07 00 00 00 16 00


*** Test Cases ***
Get IPMI BMC SSH Port
    [Documentation]    带认证的IPMI的获取ssh端口
    [Tags]  Get_Bmc_Ssh_Port_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


